<?php


namespace app\command;

use app\admin\services\task\CronSmsService;
use think\admin\Command;
use think\console\Input;
use think\console\Output;

class CronSmsTabShop extends Command
{

    protected function configure(){
        $this->setName('CronSmsTabShop');
        $this->setDescription('开启定时任务,发送考勤预警短信记录-'.date('Y-m-d H:i:s'));
    }

    protected function execute(Input $input, Output $output)
    {
        $output->writeln('开始定时任务,发送考勤预警短信记录-'.date('Y-m-d H:i:s'));
        $tasks = new CronSmsService();
        $tasks->execute_task(1);
        $output->writeln('定时任务结束,发送考勤预警短信记录-'.date('Y-m-d H:i:s'));
    }

}